package com.keta.foundation.shiro;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * 带验证码的认证Token，可以不使用验证码
 * 
 * @author robin
 *
 */
public class CaptchaUsernamePasswordToken extends UsernamePasswordToken {

	private static final long serialVersionUID = -5789205474073678497L;
	// 标示该Token是否验证验证码
	private boolean isUseCaptcha;
	// 验证码
	private String captcha;

	public CaptchaUsernamePasswordToken(String username, String password, boolean rememberMe, String host,
			String captcha) {

		super(username, password, rememberMe, host);

		this.captcha = captcha;
	}

	public boolean isUseCaptcha() {
		return isUseCaptcha;
	}

	public void setUseCaptcha(boolean isUseCaptcha) {
		this.isUseCaptcha = isUseCaptcha;
	}

	public String getCaptcha() {
		return captcha;
	}

	public void setCaptcha(String captcha) {
		this.captcha = captcha;
	}
}
